import axios from 'axios'
import { BASE_URL } from '../Constant'

const INFO_BASE_URL = BASE_URL + '/info'

export const getInfoChildrenByPid = (pid:string) => {
    return axios.get(
        INFO_BASE_URL + `/getChildren?pid=${pid}`
    )
}

export const add = (data:any) => {
    return axios.post(
        INFO_BASE_URL  + '/add',
        data
    )
}